package com.shuwen.gcdj.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 部门(t_sections)实体类
 *
 * @author localhost_ubuntu
 * @since 2021-11-24 21:56:05
 * @description created by mybaits plus code generator
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_sections")
public class Sections extends Model<Sections> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 部门id
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    private Integer generation;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态(启用，禁用)
     */
    private Integer active;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 备注
     */
    private String note;

    /**
     * 父级角色id
     */
    private String parentId;

    /**
     * 创建者id
     */
    private String createId;

    /**
     * 更新者id
     */
    private String updateId;

    /**
     * 创建时间
     */
//    @TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private LocalDateTime updateTime;
    /**
     * 是否删除 1-删除 0-正常
     */
    private Integer isDelete;

}

